cmake_minimum_required(VERSION 3.0.2)
project(view_point_server)

set(CMAKE_BUILD_TYPE "Release")
# set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS "-std=c++14")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")

find_package(Eigen3 REQUIRED)
find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  roslib
  visualization_msgs
  quadrotor_msgs
)

catkin_package(
  INCLUDE_DIRS include
  LIBRARIES view_point_server
  CATKIN_DEPENDS roscpp rospy std_msgs visualization_msgs
  DEPENDS system_lib
)

include_directories(
    include
    ${catkin_INCLUDE_DIRS}
    ${EIGEN3_INCLUDE_DIR}
)

add_executable(view_point_server_node
    src/viewpoint_server_main.cpp
    src/view_point_server.cpp
)
target_link_libraries(view_point_server_node ${catkin_LIBRARIES})